<template>
  <div>
    <router-view />
    <Tabbar :items="items" :indexapp="0" />
  </div>
</template>

<script>
import Tabbar from "./components/Tabbar";
export default {
  components: {
    Tabbar,
  },
  data() {
    return {
      items: [
        {
          title: "首页",
          icon: require("./assets/home.png"),
          icon_active: require("./assets/home-active.png"),
          path: "/",
        },
        {
          title: "分类",
          icon: require("./assets/category.png"),
          icon_active: require("./assets/category-active.png"),
          path: "/category",
        },
        {
          title: "购物车",
          icon: require("./assets/Cart.png"),
          icon_active: require("./assets/Cart-active.png"),
          path: "/cart",
        },
        {
          title: "我的",
          icon: require("./assets/icon_mine.png"),
          icon_active: require("./assets/icon_mine-active.png"),
          path: "/mine",
        },
      ],
    };
  },
};
</script>

<style>
</style>